const mongoose = require('mongoose');
// 定义文档解构即约束
const bookSchema = mongoose.Schema({
    name: String,
    author: String,
    price: Number
})
// 定义BookModel集合
const BookModel = mongoose.model('books',bookSchema);
module.exports = BookModel;